<div id="cardDiv">
  <div id="imgDiv">
	<?php echo image_tag('template/card.png', array('alt' =>$alt_panel)) ?>
  </div>
  <div id="dataDiv"  style="text-align: center;">
    <h3><?php echo  $title ?></h3><br>
	<?php echo image_tag($image, array('alt' =>$alt_image)) ?><br><br>
  </div>
  <div id="codeDiv" style="text-align: left;">
	<span class="title">Opciones</span><br>
	<ul>
	<?php foreach($links as $link): ?>
	
    <?php if ($sf_user->hasPermission($link['permiso'])): ?>	
	  <li><span><?php echo link_to($link['nombre'], $link['ruta'], array('onmouseout' => "hidetip()",  'onmouseover' => sprintf("showtip('%s')" , $link['ayuda']))) ?></span></li>
    <?php endif; ?>	  
   
	<?php endforeach; ?>
	</ul>
  </div>
</div>